<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of eventos
 *
 * @author drarko
 */
class eventos extends table
{

    public function __construct() 
    {
        return parent::__construct("eventos");
    }
    
    public function insertar($evento)
    {
        $this->addValue("0");
        $this->addValue("'".$evento."'");
               
        $result = $this->insert();
        
        return $result;
    }    

    public function selectPorEvento($donde)
    {
        $this->addLikeWhere("evento","'".$donde."'");
        
        $result = $this->select();
        
        return $result;
    }    

    public function actualizarEvento($id,$evento)
    {
        $this->addSet("evento","'".$evento."'");
        $this->addWhere("id" , $id);          
        $result = $this->update();
        
        return $result;
        
    }

    public function actualizar($id, $evento)
    {

        $result = $this->actualizarEvento($id, $evento);
     
        return $result;
    }
    
}


